<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>mongoose-增删改查</title>
    <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<input class="form-control" type="text" value="{{ zl.id }}">
<div class="table-responsive">
    <table class="table table-striped">
        <thead>
        <tr>
            <th>ID</th>
            <th>姓名</th>
            <th>年龄</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {{ each zl }}
        <tr>
            <td>{{ $index + 1}}</td>
            <td>{{ $value.name }}</td>
            <td>{{ $value.age }}</td>
            <td>
                <a href="/bianji?id={{ $value._id }}">编辑</a>
                <a href="/shanchu?id={{ $value._id }}">删除</a>
            </td>
        </tr>
        {{ /each }}
        </tbody>
    </table>
    <a class="btn btn-default" href="/new">添加新信息</a>
</div>
</body>
</html>